package com.own.core.html.panel.checkBox;

import java.lang.reflect.Field;


import org.apache.wicket.model.IModel;
 
import com.own.core.html.form.checkBox.CheckBox;
import com.own.core.html.form.checkBox.OwnCheckBox;
import com.own.core.html.form.textField.OwnTextField;
import com.own.core.html.form.textField.TextField;
import com.own.core.html.panel.OwnDynPanel;
import com.own.util.model.OwnCompoundPropertyModel;

public class OwnCheckBoxPan extends OwnDynPanel {
	CheckBox checkBox;

	public OwnCheckBoxPan(IModel model, Field field, CheckBox checkBox) {
		super(model, field);
		this.checkBox = checkBox;
		OwnCheckBox ownCheckBox = new OwnCheckBox("checkBoxField",
				((OwnCompoundPropertyModel) model).bind(field.getName()), checkBox);

		setFormComponent(ownCheckBox);
		setEnableFeedBack(false);
		draw();
	}

}
